package utils

import (
	"github.com/gin-gonic/gin"
	"strconv"
)

func GetUid(c *gin.Context) (int64, error) {
	uid := c.GetString("uid")
	return strconv.ParseInt(uid, 10, 64)
}
